package com.jt.config;

import com.mysql.cj.protocol.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Service
public class TestConsumer {
    @RabbitListener(queues = "boot_queue")
    public void listenMessage(String message)
    {
        System.out.println("接收消息："+message);
    }

}
